package com.geeguo.ebuilder.client.business.system.excelimport.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Getter
@Setter
public class ExcelImportCreateDTO {

    @NotBlank(message = "用户ID不能为空")
    @Schema(title = "用户ID")
    private String userId;

    @NotNull(message = "导入类型不能为空")
    @Schema(title = "导入类型")
    private Integer type;

    @NotBlank(message = "标题不能为空")
    @Schema(title = "标题")
    private String title;

    @Schema(title = "参数")
    private String params;

    @NotBlank(message = "数据描述不能为空")
    @Schema(title = "数据描述")
    private String dataSchema;

    @NotBlank(message = "附件存储路径不能为空")
    @Schema(title = "附件存储路径")
    private String filePath;

    @NotNull(message = "导入状态不能为空")
    @Schema(title = "导入状态")
    private Integer status;

    @Schema(title = "创建时间")
    private Date createTime;

    @Schema(title = "开始时间")
    private Date startTime;

    @Schema(title = "结束时间")
    private Date endTime;

    @NotNull(message = "成功记录数不能为空")
    @Schema(title = "成功记录数")
    private Integer successCount;

    @NotNull(message = "失败记录数不能为空")
    @Schema(title = "失败记录数")
    private Integer failCount;

    @Schema(title = "错误消息")
    private String errorMessage;
}

